import sceneutil from "../utils/sceneutil";

export default class sceneclose extends Laya.Script {
    constructor() {
        super();
    }

    onEnable() {

    }

    onClick() {
        let name = this.owner.name;
        if(name=='duihuan11'){
            // Laya.Scene.open('tishi',false,)
            sceneutil.Instance.floatText("兑换成功", 450, Laya.stage)
            return;
        }
        Laya.Scene.close(name + '.scene');
        sceneutil.Instance.hideBlackBack()
    }
}